package blog.entity;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Category implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	//分类的自增ID
    private Integer categoryId;

    //分类的父级id
    private Integer categoryPid;

	  //分类名称
    private String categoryName;

    //分类描述
    private String categoryDescription;

    //分类的顺序
    private Integer categoryOrder;

 	  //分类的图标
    private String categoryIcon;

    //文章数量(非数据库字段)
    private Integer articleCount; 
    
    public Category(int categoryId) {
		this.categoryId=categoryId;
	}
    
    public Category(Integer categoryId, String categoryName) {
        this.categoryId = categoryId;
        this.categoryName = categoryName;
    }

}
